package com.hr.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author hr
 * @since 2024-04-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_menu")
@ApiModel(value="SysMenu对象", description="")
public class SysMenu extends Model {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "菜单列表")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("icon")
    private String icon;

    @ApiModelProperty(value = "1菜单 2权限 3按钮")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "菜单名称")
    @TableField("auth_name")
    private String authName;

    @TableField("path")
    private String path;

    @TableField("parent_id")
    private Integer parentId;

    @TableField("component")
    private String component;

    @TableField("sort")
    private Integer sort;
    @TableField("level")
    private Integer level;
    @TableField("status")
    private Integer status;


}
